Last updated: 2019-02-19

workflowr checks: (Click a bullet for more information)
  • ✖ R Markdown file: uncommitted changes The R Markdown is untracked by Git. To know which version of the R Markdown file created these results, you’ll want to first commit it to the Git repo. If you’re still working on the analysis, you can ignore this warning. When you’re finished, you can run wflow_publish to commit the R Markdown file and build the HTML.

  • ✔ Environment: empty

    Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.

  • ✔ Seed: set.seed(20181026)

    The command set.seed(20181026) was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.

  • ✔ Session information: recorded

    Great job! Recording the operating system, R version, and package versions is critical for reproducibility.

  • ✔ Repository version: 0c0d21d

    Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility. The version displayed above was the version of the Git repository at the time these results were generated.

    Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:
    
    Ignored files:
        Ignored:    analysis/figure/
        Ignored:    code/.ipynb_checkpoints/
        Ignored:    data/
        Ignored:    output/10x-180504
        Ignored:    output/10x-180504-aligned
        Ignored:    output/10x-180504-aligned-metageneplot
        Ignored:    output/10x-180504-beforeQC
        Ignored:    output/10x-180504-beforeqc
        Ignored:    output/10x-180504-cca-discardedcells
        Ignored:    output/10x-180504-ccregout
        Ignored:    output/10x-180504-ccregout-aligned
        Ignored:    output/10x-180504-ccregout-cca-discardedcells
        Ignored:    output/10x-180831
        Ignored:    output/10x-180831-2
        Ignored:    output/10x-180831-T1T2T3
        Ignored:    output/10x-180831-T4T5
        Ignored:    output/10x-180831-beforeqc
        Ignored:    output/10x-180831-beforeqc-2
        Ignored:    output/10x-180831-filtered-genes-bulk
        Ignored:    output/10x-180831-filtered-genes-bulk2
        Ignored:    output/10x-180831-notcleaned
        Ignored:    output/10x-180831-seurat3
        Ignored:    output/10x-180831-seurat3.RData
        Ignored:    output/10x-180831.RData
        Ignored:    output/10x-180831_copy
        Ignored:    output/monocle/
    
    Untracked files:
        Untracked:  analysis/.ipynb_checkpoints/velocyto_notebook_180831-checkpoint.ipynb
        Untracked:  analysis/10x-180831-analysis.Rmd
        Untracked:  analysis/10x-180831-brownness.Rmd
        Untracked:  analysis/10x-180831-bulk.Rmd
        Untracked:  analysis/velocyto_notebook_180831.ipynb
        Untracked:  code/Rplots.pdf
        Untracked:  code/add-wgcna-metadata.R
        Untracked:  code/preprocess-data-S3.R
        Untracked:  code/velocyto_preprocess.py~
        Untracked:  code/velocyto_workflow_copy.py
        Untracked:  output/bulk-sc180831-merged
        Untracked:  output/bulk-seurat
        Untracked:  output/markergenes/180831/markers_10x-180831_type_negbinom
        Untracked:  output/markergenes/180831/monocle_genelist_type
        Untracked:  output/velocyto/10x-180831-labels.hdf5
        Untracked:  output/velocyto/10x-180831-labels_kNN100_tsne11.hdf5
        Untracked:  output/velocyto/10x-180831-labels_kNN100_tsne22.hdf5
        Untracked:  output/velocyto/10x-180831-labels_kNN100_tsne33.hdf5
        Untracked:  output/velocyto/10x-180831-labels_kNN100_tsne53.hdf5
        Untracked:  output/velocyto/10x-180831-labels_kNN100_umap.hdf5
        Untracked:  output/velocyto/10x-180831-labels_kNN200_tsne11.hdf5
        Untracked:  output/velocyto/10x-180831-labels_kNN200_tsne22.hdf5
        Untracked:  output/velocyto/10x-180831-labels_kNN200_tsne33.hdf5
        Untracked:  output/velocyto/10x-180831-labels_kNN200_tsne53.hdf5
        Untracked:  output/velocyto/10x-180831-labels_kNN200_umap.hdf5
        Untracked:  output/velocyto/10x-180831-labels_tsne33_velocity.hdf5
        Untracked:  output/velocyto/10x-180831-labels_tsne53_velocity.hdf5
        Untracked:  output/velocyto/10x-180831-labels_tsne_velocity.hdf5
        Untracked:  output/velocyto/10x-180831.hdf5
        Untracked:  output/velocyto/10x-180831.loom
        Untracked:  output/velocyto/10x-180831_kNN100_tsne1.hdf5
        Untracked:  output/velocyto/10x-180831_tsne33_velocity.hdf5
        Untracked:  output/velocyto/10x-180831_tsne_velocity.hdf5
        Untracked:  output/wgcna/
        Untracked:  tables/10x-180831-metadata-labels.txt
        Untracked:  tables/10x-180831-metadata.txt
        Untracked:  tables/BEAM/
        Untracked:  tables/BEAM_GSEA/
    
    Unstaged changes:
        Deleted:    analysis/.ipynb_checkpoints/velocyto_notebook_180504-Copy1-checkpoint.ipynb
        Deleted:    analysis/.ipynb_checkpoints/velocyto_notebook_180504-checkpoint.ipynb
        Modified:   analysis/10x-180504-general-analysis.Rmd
        Modified:   analysis/10x-180504-mixture-cluster.Rmd
        Modified:   analysis/10x-180831-general-analysis.Rmd
        Modified:   analysis/10x-180831-monocle.Rmd
        Modified:   analysis/demuxlet.Rmd
        Deleted:    analysis/velocyto_notebook_180504-Copy1.ipynb
        Modified:   analysis/velocyto_notebook_180504.ipynb
        Modified:   code/10x-180831-config.R
        Modified:   code/find-markers.R
        Modified:   code/preprocess-data.R
        Modified:   code/run-monocle.R
        Modified:   code/velocyto_preprocess.py
        Modified:   code/velocyto_workflow.py
        Modified:   plots/180504_pca_tsne.pdf
        Modified:   plots/180504_velocyto_phase.pdf
        Modified:   plots/180504_velocyto_phase_legend.pdf
        Modified:   plots/supplementary_figures/sfig_180504_pcelbow.pdf
        Modified:   plots/supplementary_figures/sfig_180504_qcplots.pdf
    
    
    Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.

#library(workflowr, lib.loc='/home/cbmr/pytrik/libraries/')
#library(Seurat, lib.loc='/home/cbmr/pytrik/libraries/')
seurobj <- readRDS('output/10x-180831')

PC2 seems to capture the difference between Monocle states.

DimPlot(seurobj, group.by='State', reduction.use='pca', dim.1=5, dim.2=2)

How are some of the branch-dependent genes expressed? Brown genes

FeaturePlot(seurobj, features.plot=c('UCP2', 'FABP5', 'GPD1', 'ADIPOQ'), reduction.use='pca', dim.1=5, dim.2=2, cols.use=c('gray', 'blue'), no.legend=F, nCol=2)

White genes

FeaturePlot(seurobj, features.plot=c('APOD', 'MGP', 'IGF2', 'PLAC9'), reduction.use='pca', dim.1=5, dim.2=2, cols.use=c('gray', 'blue'), no.legend=F, nCol=2)

Expression of brown branch genes in the t-SNE

FeaturePlot(seurobj, features.plot=c('UCP2', 'FABP5', 'SCD', 'G0S2', 'ADIPOQ', 'GPD1', 'PLIN1', 'PLIN4'), reduction.use='tsne', cols.use=c('gray', 'blue'), no.legend=F, nCol=2)

Some of the white branch genes

FeaturePlot(seurobj, features.plot=c('APOD', 'MGP', 'DCN', 'PLAC9', 'IGF2', 'ZFP36', 'FOS',
'TCEAL4',
'C1R',
'OSR2',
'MFGE8',
'FBLN1',
'CLU'), reduction.use='tsne', cols.use=c('gray', 'blue'), no.legend=F, nCol=2)

PC2 heatmap

PCHeatmap(seurobj, pc.use=2, cells.use=100, do.balanced = T, num.genes = 100)
Warning in heatmap.2(data.use, Rowv = NA, Colv = NA, trace = "none", col = col.use, :
Discrepancy: Rowv is FALSE, while dendrogram is `both'. Omitting row dendogram.
Warning in heatmap.2(data.use, Rowv = NA, Colv = NA, trace = "none", col = col.use, :
Discrepancy: Colv is FALSE, while dendrogram is `column'. Omitting column dendogram.
Warning in plot.window(...): "dimTitle" is not a graphical parameter
Warning in plot.xy(xy, type, ...): "dimTitle" is not a graphical parameter
Warning in title(...): "dimTitle" is not a graphical parameter

FeaturePlot(seurobj, features.plot=c('ADIPOQ', 'LIPE', 'PLIN4', 'FASN', 'AGPAT2', 'PCK1', 'MMP2', 'PPAP2B', 'SCARA5', 'IGFBP6', 'SERPING1'), reduction.use='tsne', cols.use=c('gray', 'blue'), no.legend=F, nCol=2)

FeaturePlot(seurobj, features.plot='EBF2', cols.use=c('gray', 'blue'), no.legend=F)

Session information

sessionInfo()
R version 3.4.3 (2017-11-30)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Storage

Matrix products: default
BLAS: /nfsdata/tools/R/3.4.3/lib64/R/lib/libRblas.so
LAPACK: /nfsdata/tools/R/3.4.3/lib64/R/lib/libRlapack.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8       
 [4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] Seurat_2.3.4    Matrix_1.2-15   cowplot_0.9.4   ggplot2_3.1.0   workflowr_1.1.1

loaded via a namespace (and not attached):
  [1] Rtsne_0.13          colorspace_1.4-0    class_7.3-14        modeltools_0.2-22  
  [5] ggridges_0.5.0      mclust_5.4.1        rprojroot_1.3-2     htmlTable_1.12     
  [9] base64enc_0.1-3     rstudioapi_0.9.0    proxy_0.4-22        flexmix_2.3-14     
 [13] bit64_0.9-7         mvtnorm_1.0-8       codetools_0.2-16    splines_3.4.3      
 [17] R.methodsS3_1.7.1   robustbase_0.93-2   knitr_1.20          jsonlite_1.6       
 [21] Formula_1.2-3       ica_1.0-2           cluster_2.0.7-1     kernlab_0.9-27     
 [25] png_0.1-7           R.oo_1.22.0         compiler_3.4.3      httr_1.3.1         
 [29] backports_1.1.2     assertthat_0.2.0    lazyeval_0.2.1      lars_1.2           
 [33] acepack_1.4.1       htmltools_0.3.6     tools_3.4.3         bindrcpp_0.2.2     
 [37] igraph_1.2.2        gtable_0.2.0        glue_1.3.0          RANN_2.6           
 [41] reshape2_1.4.3      dplyr_0.7.6         Rcpp_0.12.18        trimcluster_0.1-2.1
 [45] gdata_2.18.0        ape_5.1             nlme_3.1-137        iterators_1.0.10   
 [49] fpc_2.1-11.1        gbRd_0.4-11         lmtest_0.9-36       stringr_1.3.1      
 [53] irlba_2.3.2         gtools_3.8.1        DEoptimR_1.0-8      MASS_7.3-50        
 [57] zoo_1.8-3           scales_1.0.0        doSNOW_1.0.16       parallel_3.4.3     
 [61] RColorBrewer_1.1-2  yaml_2.2.0          reticulate_1.10     pbapply_1.3-4      
 [65] gridExtra_2.3       rpart_4.1-13        segmented_0.5-3.0   latticeExtra_0.6-28
 [69] stringi_1.2.4       foreach_1.4.4       checkmate_1.8.5     caTools_1.17.1.1   
 [73] bibtex_0.4.2        Rdpack_0.9-0        SDMTools_1.1-221    rlang_0.3.1        
 [77] pkgconfig_2.0.2     dtw_1.20-1          prabclus_2.2-6      bitops_1.0-6       
 [81] evaluate_0.11       lattice_0.20-38     ROCR_1.0-7          purrr_0.2.5        
 [85] bindr_0.1.1         labeling_0.3        htmlwidgets_1.2     bit_1.1-14         
 [89] tidyselect_0.2.4    plyr_1.8.4          magrittr_1.5        R6_2.4.0           
 [93] snow_0.4-2          gplots_3.0.1        Hmisc_4.1-1         whisker_0.3-2      
 [97] pillar_1.3.1        foreign_0.8-71      withr_2.1.2         fitdistrplus_1.0-9 
[101] mixtools_1.1.0      survival_2.42-6     nnet_7.3-12         tsne_0.1-3         
[105] tibble_2.0.1        crayon_1.3.4        hdf5r_1.0.0         KernSmooth_2.23-15 
[109] rmarkdown_1.10      grid_3.4.3          data.table_1.11.4   git2r_0.24.0       
[113] metap_1.0           digest_0.6.16       diptest_0.75-7      tidyr_0.8.1        
[117] R.utils_2.7.0       stats4_3.4.3        munsell_0.5.0      

This reproducible R Markdown analysis was created with workflowr 1.1.1